//
// Created by 刘洋 on 2024/4/16.
//
#include "VOFA.h"
VOFA vofa;
void vofaInit()
{

    vofa.tail[0] = 0x00;
    vofa.tail[1] = 0x00;
    vofa.tail[2] = 0x80;
    vofa.tail[3] = 0x7f;
}
void vofaTransmit(uint8_t channalNum,float data)
{
    vofa.fdata[channalNum] = data;
    HAL_UART_Transmit(&VOFA_HANDLE, (const uint8_t *) (&vofa), sizeof(vofa), 1000);
//    HAL_UART_Transmit(&VOFA_HANDLE, (const uint8_t *) vofa.tail, 4, 1000);
}
